package com.goldsprite.gameframeworks.assets;

import com.badlogic.gdx.graphics.Texture;

public class MTexture extends Texture {
	private GameRes resId;

	public MTexture(Texture tex, GameRes resId) {
		super(tex.getTextureData());
		this.resId = resId;
	}
	public MTexture(GameRes res) {
		super(res.getPath());
		this.resId = res;
	}

	public GameRes getResId() {
		return resId;
	}

//	// 添加equals和hashCode方法用于测试比较
//	@Override
//	public boolean equals(Object obj) {
//		if (this == obj) return true;
//		if (obj == null || getClass() != obj.getClass()) return false;
//		MTexture other = (MTexture) obj;
//		return resId == other.resId;
//	}
//
//	@Override
//	public int hashCode() {
//		return resId != null ? resId.hashCode() : 0;
//	}
}
